package com.yj.limit;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class CustomExceptionHandler {
    @ExceptionHandler(RequestLimitException.class)
    public String handleException(RequestLimitException e) {
        return "Exception occurred: " + e.getMessage();
    }
}
